package cn.itcast.po;

import java.util.Date;

public class User {

    private Integer id;
    private String name;
    private Date date;
    private String sex;
    private String address;

    public User(){}

    public User(String name){
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String  getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "id:" + id +"\t"+ "name:" + name +"\t"+ "date:" + date +"\t"+ "sex:" + sex +"\t"+ "address:" + address;
    }

    public void show(){
        System.out.println("hello world!");
    }
}
